{% comment %}
    Renders a list of product's price (regular, sale)

    Accepts:
    - collection: {Object} Product Liquid object (optional)

    Usage:
    {% render 'collection-price', collection: collection %}
{% endcomment %}

{%- liquid
  for product in products
    assign total = total | plus: product.price
  endfor
  
  assign total = total | default: 0
  assign money_price = total | money
-%}
<span class="price_underline">{{ money_price }}</span>